package objs;

import java.awt.*;


public class Bgobj extends Pojo {
    @Override
    public void paintSelf(Graphics gImage) {
        gImage.drawImage(image,x,y,null);
        y+=speed;
        if(y==0){
            y=-1500;
        }
    }

    public Bgobj() { super(); }

    public Bgobj(Image image, int x, int y, double speed) {
        super(image, x, y, speed);
    }
}
